package com.IoLiu;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutStream {
    public static void main(String[] args) throws IOException {
        //创建文件,创建字节输出流,输出流指向创建的文件
        FileOutputStream file=new FileOutputStream("D:\\下载\\file\\java10.txt",true);
        //在文件上面写数据
        byte[] by1={48,49,50,51,52,53};
        file.write("\r\n".getBytes());
        file.write(by1);
        file.write("\r\n".getBytes());
        byte[] bys = {97, 98, 99, 100, 101};
        file.write(bys);
        file.close();

    }
}
